package com.dearbinge.data.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dearbinge.data.pojo.transactionFlow.TransactionFlow;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TransactionFlowMapper {
    Integer insert(TransactionFlow transactionFlow);

    Integer update(TransactionFlow transactionFlow);

    TransactionFlow getById(Integer id);

    Integer delete(Integer id);

    Integer count(@Param("userId") String userId,@Param("startTime") String startTime,@Param("endTime") String endTime);

    List<Map<String,Object>> getByPage(@Param("userId") String userId, @Param("startTime") String startTime, @Param("endTime") String endTime, Page<Map<String,Object>> page);
}
